#pragma once
#include "RenderTarget.h"
struct IDirect3DTexture9;
struct IDirect3DSurface9;

class MultiRenderTarget : public RenderTarget
{
public:
	MultiRenderTarget(int width, int height, D3DFORMAT format, bool depth, int num);
	virtual ~MultiRenderTarget();

	virtual void Init();
	virtual void Release();
	virtual void Attach();
	virtual void Dettach();

	int getNum() const { return mNum; }

private:
	int mNum;
	IDirect3DTexture9* mTextures[MAX_MRT_NUM];
	IDirect3DSurface9* mSurfaces[MAX_MRT_NUM];
};
